<template>
	<view>
		<view class="smart-container">1.容器</view>
		<view class="smart-panel-h"@click="goDetailPage('view')"><text>view视图</text></view>
		<view class="smart-container">2.基础内容</view>
		<view class="smart-panel-h"@click="goDetailPage('test')"><text>test文本编辑</text></view>
		<view class="smart-panel-h"@click="goDetailPage('icon')"><text>icon图</text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
					goDetailPage(e) {
						if (typeof e === 'string') {
								uni.navigateTo({
									url: '/pages/component/' + e + '/' + e
								});
							} else {
								uni.navigateTo({
									url: e.url
								});
							}
						}
			
		}
	}
</script>

<style>

</style>
